<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>8_弹性布局示例</title>
    <style>
        .fu{
            background-color: #ff0;
            /*给父元素设置flex布局,就可以自动配置子元素,并且父元素不会失高*/
            display: flex;
        }
        .fu>div{
            width: 200px;
            height: 200px;
            border:5px solid #000;
        }
    </style>
</head>
<body>
<div class="fu">
    <div class="z1">1</div>
    <div class="z2">2</div>
    <div class="z3">3</div>
</div>
</body>
</html>